package com.example.utils.result;

/**
 * @Description: 业务响应编码
 * @Author runto
 * @Date 2023/10/22 10:34
 * @PackageName:com.example.utils.result
 * @ClassName: BaseCodeConstant
 * @Version 1.0
 */
public class BaseCodeConstant {

    /**
     * 成功
     */
    public static final String SUCCESS = "0000";

    /**
     * 未知错误
     */
    public static final String SYSTEM_ERROR = "9999";

    /**
     * 缺失必要参数
     */
    public static final String MISS_PARAM = "530";

    /**
     * 非法参数
     */
    public static final String ILLEGAL_PARAM = "531";

    /**
     * 账号不能为空
     */
    public static final String ACC_IS_NULL = "532";
    /**
     * 密码不能为空
     */
    public static final String PWD_IS_NULL = "533";

    /**
     * 账号或密码错误
     */
    public static final String ACC_OR_PWD_ERROR = "534";

    /**
     * 账号或邮箱错误
     */
    public static final String ACC_OR_EMAIL_ERROR = "535";

    /**
     * 邮箱格式错误
     */
    public static final String EMAIL_FORMAT_ERROR = "536";

    /**
     * 手机格式错误
     */
    public static final String MOBILE_FORMAT_ERROR = "537";

    /**
     * 固话格式错误
     */
    public static final String TEL_FORMAT_ERROR = "538";

    /**
     * 无效的验证码
     */
    public static final String CODE_ERROR = "539";

    /**
     * token失效
     */
    public static final String TOKEN_INVALID = "540";

    /**
     * 没有权限
     */
    public static final String PERMISSSION_DENIED = "541";

    /**
     * 邮件发送失败
     */
    public static final String EMAIL_SEND_ERROR = "542";

    /**
     * 账号格式错误，账号必须是邮箱格式
     */
    public static final String ILLEGAL_ACCT_FORMAT = "543";

    /**
     * RSA或者AES加密失败
     */
    public static final String ENCRYPTION_FAILED = "546";

    /**
     * RSA或者AES解密失败
     */
    public static final String DECRYPTION_FAILED = "547";

    /**
     * 存在多条记录
     */
    public static final String DUPLICATE_RECORD = "550";

    /**
     * redis缓存时间6小时 6*60*60
     */
    public static final long CASE_TIME = 21600;

    /**
     * 缓存operator运营商码表
     */
    public static final String OPERATOR_CODE = "operatorCode";

    /**
     * 文件上传相关
     */
    public static final String UPLOAD_FILE_FAILED = "553";

}

